home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
comm
/
misc
/
OCproFinal_src.lha
/
ONline_Check414_SRC
/
ONline_check414.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1999-01-21
|
57KB
|
1,912 lines
/* $VER: ONline Check V4.14 (11.11.98) (c)1998 A.Teichmann@gmx.net
AREXX Source Code von Online Check.
Da Ich mich Programmiertechnisch vom AREXX Trenne, und auf eine andere
Programmiersprache versuche aufzuspringen, trenne Ich mich hiermit von
dieser "Altlast", die man sowieso nicht einfach so "übersetzen" kann.
Ich werde ein ähnliches Programm leider komplett neu Coden müssen.
Wer bisher noch nicht in den Code reingeschielt hat, der hat jetzt
hiermit die möglichkeit sich diesen Spaghtetti Code reinzuziehen.
Letztendlich haben auch die enrom gefakten Keyfiles dazu beigetragen...
*/
options results
parse arg neustart
NEUstartprg=strip(neustart);plug=0
if ~exists(NEUstartprg) then NEUstartprg=""
if exists(NEUstartprg) then NEUstartprg=NEUstartprg
Call StartOC
exit
textsch:
if g1="<M>" then er1=er1""OLA
if g1="<J>" then er1=er1""dattt
if g1="<G>" then er1=er1""MADM
if g1="<K>" then er1=er1""gdm
if g1="<E>" then er1=er1""anzahl
if g1="<R>" then er1=er1""MADM-gdm
if g1="<P>" then er1=er1""proz
if g1="<H>" then er1=er1""miami
if g1="<V>" then er1=er1""gdm-MADM
if substr(g1,1,1)="<" then i1=1
if i1=0 then er1=er1""e1
if substr(g1,1,1)=">" then i1=0
return er1
startOC:erger=27;plugin=0;if exists("s:ONline_Check.plugin") then do
plugin=1
plug=1
end
if plugin=0 then if exists("rexx:ONline_Check.plugin") then do
plugin=1
plug=2
end
admdz=trunc(left(date("E"),2));history2="";history="";history1="";MUSSopt=0
SEARCHid=">KCEHC ENILNO NOV FFIRGUZSGNUNHCEREB RETZTEL<";signo=0;anzsigno=0;lesekey="if seek(inf,0,"E")<1000 then keyiti=15";nulli="guut=0"
verz="4.14 beta MiamiDX Testversion";seriennummer=0;SMZsec=0;onlinecop="00:00:00";EZT="000000";AZT=EZT;ONLflag=0;ozu="";kompzzg=0;kompzzgcop=0;kompzzg1=0
fe1="";respoo="rtez_defaultresponse = 0";docenter="rtez_flags = ezreqf_centertext"
nrek=0;dofont="";nostartprg="";nottot=0;starbef="";response=1009
anzahlcop=0;anzahl=0;komponline="00:00:00";reziprog="if guut~=0 then if index(regname,'^')~=0 then call schicht"
plopp=" ONline_Check V"verz" (C) 1997 A.Teichmann@gmx.net"
defaul=pragma("D") ; ozges=0 ;merker=defaul
uip=0;gdmg=0;g=defaul;rr="/";fr=rr;NL="0a"x ;tfpfg=12
nomi=1;opti=0;zop=0;stz=0;local=0
if right(g,1)=":" then fr="";zhj="ONline_Check.catalog"
lot=''defaul||fr||zhj''
if local=0 then IF EXISTS(lot) THEN local=lot
if local=0 then IF EXISTS("sys:locale/Catalogs/deutsch/ONline_Check.catalog") THEN local="sys:locale/Catalogs/deutsch/ONline_Check.catalog"
if local=0 then IF EXISTS("S:ONline_Check.catalog") THEN local="S:ONline_Check.catalog"
IF ~EXISTS("libs:rexxreqtools.library") THEN DO
SAY "Error !"||NL||"need the RexxReqTools.library in LIBS:"
EXIT
END
CALL ADDLIB("rexxreqtools.library",0,-30)
FONT="topaz";SIZE="8";vgl=((58-11)*((erger/9)*73))||(response)*((49/7)*tfpfg)
if local=0 then signal umbr
call open(uo,local,"R")
q1=strip(readLN(uo))
q2=strip(readLN(uo))
locm=upper(strip(substr(readLN(uo),13,7)))
q4=readLN(uo);q5=readLN(uo);q6=readLN(uo);q7=readLN(uo)
if left(q1,33)~="## version $VER: ONline_Check 4.0" then local=0
if q2~="## codeset 0" then local=0
if local=0 then signal umbrrr
uua=strip(readLN(uo));uub=strip(readLN(uo));TRITT=strip(readLN(uo))
buf=strip(readLN(uo));buf=strip(readLN(uo));uuc=strip(readLN(uo))
uud=strip(readLN(uo));uue=strip(readLN(uo));uuf=strip(readLN(uo))
uug=strip(readLN(uo));uuh=strip(readLN(uo));uui=strip(readLN(uo))
uuj=strip(readLN(uo));uuk=strip(readLN(uo));uul=strip(readLN(uo))
uum=strip(readLN(uo));uun=strip(readLN(uo));uuo=strip(readLN(uo))
uup=strip(readLN(uo));uuq=strip(readLN(uo));uur=strip(readLN(uo))
uus=strip(readLN(uo));uut=strip(readLN(uo));uuu=strip(readLN(uo))
uuv=strip(readLN(uo));uuw=strip(readLN(uo));uux=strip(readLN(uo))
buf=strip(readLN(uo));buf=strip(readLN(uo));qqa=strip(readLN(uo))
qqb=strip(readLN(uo));buf=strip(readLN(uo));buf=strip(readLN(uo))
gd1=strip(readLN(uo));gd2=strip(readLN(uo));gd3=strip(readLN(uo))
gd4=strip(readLN(uo));buf=strip(readLN(uo));checkk=strip(readLN(uo))
ssa=strip(readLN(uo));ssb=strip(readLN(uo));buf=strip(readLN(uo))
ssc=strip(readLN(uo));ssd=strip(readLN(uo));sse=strip(readLN(uo))
buf=strip(readLN(uo));ssf=strip(readLN(uo));ssg=strip(readLN(uo))
ssh=strip(readLN(uo));buf=strip(readLN(uo));ssi=strip(readLN(uo))
ssj=strip(readLN(uo));buf=strip(readLN(uo));ssk=strip(readLN(uo))
buf=strip(readLN(uo));ssl=strip(readLN(uo));ssm=strip(readLN(uo))
buf=strip(readLN(uo));ssn=strip(readLN(uo));sso=strip(readLN(uo))
buf=strip(readLN(uo));ssp=strip(readLN(uo));buf=strip(readLN(uo))
ssq=strip(readLN(uo));ssr=strip(readLN(uo));sss=strip(readLN(uo))
sst=strip(readLN(uo));buf=strip(readLN(uo));buf=strip(readLN(uo))
buf=strip(readLN(uo));ssu=strip(readLN(uo));buf=strip(readLN(uo))
ssv=strip(readLN(uo));ssw=strip(readLN(uo));ssx=strip(readLN(uo))
buf=strip(readLN(uo));ssy=strip(readLN(uo));ssz=strip(readLN(uo))
buf=strip(readLN(uo));ssaa=strip(readLN(uo));ssbb=strip(readLN(uo))
buf=strip(readLN(uo));ssac=strip(readLN(uo));ssbc=strip(readLN(uo))
buf=strip(readLN(uo));CHECK2=strip(readLN(uo));buf=strip(readLN(uo))
ix0=strip(readLN(uo));ix1=strip(readLN(uo));ix2=strip(readLN(uo))
ix3=strip(readLN(uo));ix4=strip(readLN(uo));ix5=strip(readLN(uo))
ix6=strip(readLN(uo));ix7=strip(readLN(uo));ix8=strip(readLN(uo))
ix9=strip(readLN(uo));buf=strip(readLN(uo));CHECK3=strip(readLN(uo))
buf=strip(readLN(uo));ssbd=strip(readLN(uo));ssbe=strip(readLN(uo))
call close(uo)
if locm~="DEUTSCH" then signal umbri
if checkk~="LOCALE_OC_REQUESTERS" then signal umbri
if check2~="_RANDOM_REQUESTER_TEXT" then signal umbri
if check3~="_REQ_ZUSATZ_TEXTE" then signal umbri
verzonung=0
if exists("S:Online_Check.Dat") then do
call open(ug,"s:online_check.dat","R")
buf=strip(readLN(ug))
buf=strip(readLN(ug))
d=strip(substr(readLN(ug),33))
JGG =strip(substr(readLN(ug),33))
NIL=strip(substr(readLN(ug),33))
temp=strip(substr(readLN(ug),33))
copyb=strip(substr(readLN(ug),33))
deleb=strip(substr(readLN(ug),33))
nilib=strip(substr(readLN(ug),33))
grenz=strip(substr(readLN(ug),33))
mpx=strip(substr(readLN(ug),33))
rpx=strip(substr(readLN(ug),33))
nipx=strip(substr(readLN(ug),33))
vpx=strip(substr(readLN(ug),33))
FONTd=strip(substr(readLN(ug),33))
Sized=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
cennt=strip(substr(readLN(ug),33))
aust=strip(substr(readLN(ug),33))
kom1=strip(substr(readLN(ug),33))
kom2=strip(substr(readLN(ug),33))
kom3=strip(substr(readLN(ug),33))
kom4=strip(substr(readLN(ug),33))
kom5=strip(substr(readLN(ug),33))
kom6=strip(substr(readLN(ug),33))
kom7=strip(substr(readLN(ug),33))
kom8=strip(substr(readLN(ug),33))
sdd=strip(substr(readLN(ug),33))
sdo=strip(substr(readLN(ug),33))
sdn=strip(substr(readLN(ug),33))
sds=strip(substr(readLN(ug),33))
mpx1=strip(substr(readLN(ug),33))
mpx2=strip(substr(readLN(ug),33))
mpx3=strip(substr(readLN(ug),33))
mpx4=strip(substr(readLN(ug),33))
mpx5=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
TFpfg=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
zt6=strip(substr(readLN(ug),33))
zt5=strip(substr(readLN(ug),33))
zt1=strip(substr(readLN(ug),33))
zt7=strip(substr(readLN(ug),33))
zt2=strip(substr(readLN(ug),33))
zt3=strip(substr(readLN(ug),33))
zt4=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
zt62=strip(substr(readLN(ug),33))
zt52=strip(substr(readLN(ug),33))
zt12=strip(substr(readLN(ug),33))
zt72=strip(substr(readLN(ug),33))
zt22=strip(substr(readLN(ug),33))
zt32=strip(substr(readLN(ug),33))
zt42=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
zt63=strip(substr(readLN(ug),33))
zt53=strip(substr(readLN(ug),33))
zt13=strip(substr(readLN(ug),33))
zt73=strip(substr(readLN(ug),33))
zt23=strip(substr(readLN(ug),33))
zt33=strip(substr(readLN(ug),33))
zt43=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
zt64=strip(substr(readLN(ug),33))
zt54=strip(substr(readLN(ug),33))
zt14=strip(substr(readLN(ug),33))
zt74=strip(substr(readLN(ug),33))
zt24=strip(substr(readLN(ug),33))
zt34=strip(substr(readLN(ug),33))
zt44=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
WoendT =strip(substr(readLN(ug),33))
SonderT=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
sm1=upper(strip(substr(readLN(ug),33)))
tv1=strip(substr(readLN(ug),33))
sm2=upper(strip(substr(readLN(ug),33)))
tv2=strip(substr(readLN(ug),33))
sm3=upper(strip(substr(readLN(ug),33)))
tv3=strip(substr(readLN(ug),33))
sm4=upper(strip(substr(readLN(ug),33)))
tv4=strip(substr(readLN(ug),33))
sm5=upper(strip(substr(readLN(ug),33)))
tv5=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
SEEkey=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
nostartprg=strip(substr(readLN(ug),33))
starbef=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
Tonlinetage1=strip(substr(readLN(ug),33))
Tonline1t1=strip(substr(readLN(ug),33))
Tonline1t2=strip(substr(readLN(ug),33))
Tonlinetage2=strip(substr(readLN(ug),33))
Tonline2t1=strip(substr(readLN(ug),33))
Tonline2t2=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
Tonlinezzg=strip(substr(readLN(ug),33))
starttag1=strip(substr(readLN(ug),33))
zufall=strip(substr(readLN(ug),33))
MUIreq=strip(substr(readLN(ug),33))
MUIpfad=strip(substr(readLN(ug),33))
MUIport=strip(substr(readLN(ug),33))
MUIrun=strip(substr(readLN(ug),33))
MUInil=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
maxseek=strip(substr(readLN(ug),33))
security=strip(substr(readLN(ug),33))
buf=strip(readLN(ug))
buf=strip(readLN(ug))
samzt6=strip(substr(readLN(ug),33))
samzt5=strip(substr(readLN(ug),33))
samzt1=strip(substr(readLN(ug),33))
samzt7=strip(substr(readLN(ug),33))
samzt2=strip(substr(readLN(ug),33))
samzt3=strip(substr(readLN(ug),33))
samzt4=strip(substr(readLN(ug),33))
call close(ug)
if datatype(security)="CHAR" then security=0
if security>1 then security=0
if datatype(maxseek)="CHAR" then maxseek=0
if maxseek<0 then maxseek=0
muistart=0
if datatype(muireq)="CHAR" then muireq=0
if muireq=0 then MUIpfad=""
if muireq>1 then muireq=1
if muireq=1 then if ~exists(muipfad) then muireq=0
if muireq=1 then do
if MUIport="" then MUIPORT="MUIREXX"
if MUIrun="" then muirun="c:run"
if ~exists(muirun) then muirun="c:run"
if muinil="" then muinil=">nil:"
end
if nostartprg~="" then if nostartprg~="EOF" then if exists(nostartprg) then nottot=1
if starbef~="" then if starbef~="EOF" then if ~exists(starbef) then starbef=""
if datatype(sized)= "CHAR" then sized=8
if sized="" then sized=8
size=sized
font=fontd
dofont="rt_font = "||FONT||".font/"||SIZE
if datatype(zufall)="CHAR" then zufall=0
if zufall <0 then zufall =0
if zufall>1 then zufall=1
if datatype(Tonlinetage1)~="CHAR" then Tonlinetage1="MON TUE WED THU FRI"
if datatype(Tonlinetage2)~="CHAR" then Tonlinetage2="SAT SUN"
if datatype(Tonline1t1)="CHAR" then Tonline1t1="0.08"
if datatype(Tonline1t2)="CHAR" then Tonline1t2="0.05"
if datatype(Tonline2t1)="CHAR" then Tonline2t1="0.05"
if datatype(Tonline2t2)="CHAR" then Tonline2t2="0.05"
if fontd="" then dofont=""
if ~exists("fonts:"fontd".font") then dofont=""
if datatype(seekey)="CHAR" then seekey=0
if seekey>1 then seekey=0
if datatype(cennt)="CHAR" then docenter=""
if cennt="" then docenter=""
if cennt>1 then docenter=""
if cennt="0" then docenter=""
if datatype(tv1)="CHAR" then tv1=1
if datatype(tv2)="CHAR" then tv2=1
if datatype(tv3)="CHAR" then tv3=1
if datatype(tv4)="CHAR" then tv4=1
if datatype(tv5)="CHAR" then tv5=1
if datatype(Tonlinezzg)="CHAR" then Tonlinezzg=0
if Tonlinezzg>1 then Tonlinezzg=1
if Tonlinezzg<0 then Tonlinezzg=0
if tv1>5 then tv1=5
if tv1<1 then tv1=1
if tv2>5 then tv2=5
if tv2<1 then tv2=1
if tv3>5 then tv3=5
if tv3<1 then tv3=1
if tv4>5 then tv4=5
if tv4<1 then tv4=1
if tv5>5 then tv5=5
if tv5<1 then tv5=1
verzonung=1
if sm1="" then if sm2="" then if sm3="" then if sm4="" then if sm5="" then verzonung=0
end
if ~exists("s:online_check.dat") then signal NODAT
if right(g,1)=":" then rr=""
zhi="ONline_Check.pref"
if NEUstartprg~="" then if exists(NEUstartprg) then default=NEUstartprg
if NEUstartprg~="" then if ~exists(NEUstartprg) then NEUstartprg=""
if NEUstartprg="" then default=''defaul||rr||zhi''
if exists(default) then signal losg
CALL rtezrequest(TRITT||NL||NL||uuc||NL||NL||uua||default||uub||NL||NL||uud||NL||uue||NL||uuf||uua||g||uub||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
LOSG:
call close(uo)
Call Open(inf,default,"R")
buf= left(readLN(inf),18)
vortg=1
if buf = "ONline Check Prefs" then vortg=0
if vortg=1 then signal NVI
buf= readLN(inf)
MXDM=strip(substr(readLN(inf),33))
b=strip(substr(readLN(inf),33))
c=strip(substr(readLN(inf),33))
ZNG=strip(substr(readLN(inf),33))
REQ=strip(substr(readLN(inf),33,1))
RUN=strip(substr(readLN(inf),33))
zsgeb=strip(substr(readLN(inf),33))
Inetgeb=strip(substr(readLN(inf),33))
Flag=strip(substr(readLN(inf),33))
RRWARN=strip(substr(readLN(inf),33))
schlupf=strip(substr(readLN(inf),33))
opti=strip(substr(readLN(inf),33))
logb=c
turbob=strip(substr(readLN(inf),33))
stacky=strip(substr(readLN(inf),33))
nreq=strip(substr(readLN(inf),33))
ONLwarn=strip(substr(readLN(inf),33))
ONLlimit=strip(substr(readLN(inf),33))
ONLschwelle=strip(substr(readLN(inf),33))
ONLreq=strip(substr(readLN(inf),33))
normrech=strip(substr(readLN(inf),33))
starttag2=strip(substr(readLN(inf),33))
freistunden=strip(substr(readLN(inf),33))
REGNAME=qqa
Call Close(inf)
guut=0
see=1
dattt=JGG
if aust~="1" then do
kom1="";kom2="";kom3="";kom4="";kom5="";kom6="";kom7="";kom8=""
end
berechtag=0
if datatype(freistunden)="CHAR" then freistunden="00:00:00"
if datatype(starttag1)="CHAR" then starttag1=0
if datatype(starttag2)="CHAR" then starttag2=0
if starttag1<1 then starttag1=0
if starttag1>31 then starttag1=0
if starttag2<1 then starttag2=0
if starttag2>31 then starttag2=0
if starttag2~=0 then do
berechtag=starttag2
starttag1=0
end
if starttag1~=0 then do
berechtag=starttag1
starttag2=0
end
if datatype(ONLwarn)="CHAR" then ONLwarn=0
if ONLwarn=1 then do
if substr(ONLlimit,3,1)~=":" then ONLwarn=0
if substr(ONLlimit,6,1)~=":" then ONLwarn=0
end
if ONLwarn=1 then do
if substr(ONLschwelle,3,1)~=":" then ONLwarn=0
if substr(ONLschwelle,6,1)~=":" then ONLwarn=0
end
if ONLwarn=1 then do
ONLSCHh=(substr(ONLschwelle,1,2))*60*60
ONLSCHm=(substr(ONLschwelle,4,2))*60
ONLSCHs=substr(ONLschwelle,7,2)
ONLschwelle=ONLSCHh+ONLSCHm+ONLSCHs
ONLlimh=(substr(ONLlimit,1,2))*60*60
ONLlimm=(substr(ONLlimit,4,2))*60
ONLlims=substr(ONLlimit,7,2)
ONLlimit=ONLlimh+ONLlimm+ONLlims
Lmzh=trunc(ONLlimit/60/60)
Lmzm=trunc(ONLlimit/60)-(Lmzh*60)
Lmzs=ONLlimit-(Lmzm*60)-(Lmzh*3600)
if length(lmzh)=1 then lmzh="0"lmzh
if length(lmzm)=1 then lmzm="0"lmzm
if length(lmzs)=1 then lmzs="0"lmzs
ONLlimitout=lmzh":"lmzm":"lmzs
end
if datatype(normrech)="CHAR" then normrech=0
if normrech>=1 then do
normrech=1
turbob=0
opti=0
end
if datatype(ONLreq)="CHAR" then ONLreq=0
if ONLreq>1 then ONLreq=1
playit=0
if stacky<=0 then stacky=4096
if stacky="" then stacky=4096
if mpx="" then playit=3
if vpx="" then vpx=0
if rpx~="" then if ~exists(rpx) then signal PRO3
if playit=0 then if ~exists(mpx) then signal PRO2
if mpx~="" then if exists(mpx) then playit=1
if ~exists(mpx1) then mpx1=""
if ~exists(mpx2) then mpx2=""
if ~exists(mpx3) then mpx3=""
if ~exists(mpx4) then mpx4=""
if sds="" then sds=gd1
if sdo="" then sdo=gd2
if sdd="" then sdd=gd3
if sdn="" then sdn=gd4
if turbob="" then turbob=0
if datatype(turbob)="CHAR" then turbob=0
if datatype(vpx)="CHAR" then vpx=0
if grenz="" then grenz=5
if datatype(grenz)="CHAR" then grenz=5
if length(JGG)>4 then dattt=substr(date("N"),8,4)
if JGG="" then dattt=substr(date("N"),8,4)
if datatype(JGG)="CHAR" then dattt=substr(date("N"),8,4)
if length(ZNG)>0 then see=0
if datatype(zsgeb)="CHAR" then zsgeb=0
if zsgeb="" then zsgeb=0
if datatype(Inetgeb)="CHAR" then Inetgeb=0
if Inetgeb="" then Inetgeb=0
if datatype(flag)= "CHAR" then flag=0
if flag= "" then flag=0
if datatype(req)= "CHAR" then req=1
if req= "" then req=1
if datatype(nreq)= "CHAR" then nreq=0
if nreq= "" then nreq=0
if datatype(MXDM)= "CHAR" then MXDM=0
if MXDM= "" then MXDM=0
if datatype(TFpfg)= "CHAR" then TFpfg=0.12
if TFpfg= "" then TFpfg=0.12
if datatype(rrwarn)= "CHAR" then rrwarn=0
if rrwarn="" then rrwarn=0
if datatype(zt1)= "CHAR" then zt1="90"
if datatype(zt2)= "CHAR" then zt2="150"
if datatype(zt3)= "CHAR" then zt3="240"
if datatype(zt4)= "CHAR" then zt4="240"
if datatype(zt5)= "CHAR" then zt5="240"
if datatype(zt6)= "CHAR" then zt6="150"
if datatype(zt7)= "CHAR" then zt7="90"
if datatype(samzt1)= "CHAR" then samzt1="150"
if datatype(samzt2)= "CHAR" then samzt2="150"
if datatype(samzt3)= "CHAR" then samzt3="240"
if datatype(samzt4)= "CHAR" then samzt4="240"
if datatype(samzt5)= "CHAR" then samzt5="240"
if datatype(samzt6)= "CHAR" then samzt6="150"
if datatype(samzt7)= "CHAR" then samzt7="150"
if datatype(TFpfg)= "CHAR" then TFpfg="0.12"
if datatype(schlupf)= "CHAR"then schlupf=100
if datatype(opti)= "CHAR"then opti=0
if opti =0 then turbob=0
tfpfg=tfpfg*100
if temp="" then temp="t:"
temp1=right(temp,1);temp2=""
if temp1~=":" then if temp1~="/" then temp2="/"
if temp1~=":" then if index(temp,":")=0 then temp2=":"
temp=temp||temp2
if copyb="" then copyb="c:copy"
if deleb="" then deleb="c:delete"
bvd=left(date("E"),2)"."left(date("U"),2)"."left(date("O"),2)
size=sized
font=fontd
ztb1=zt1;ztb2=zt2;ztb3=zt3;ztb4=zt4;ztb5=zt5;ztb6=zt6;ztb7=zt7
rwarn=trunc(rrwarn,2)
MADM=trunc(MXDM,2)
guut=2
if ~exists("l:ONline_Check.KEY") then guut=0
if guut=0 then signal gamm
guut=0
Call Open(inf,"l:ONline_Check.KEY","R")
interpret lesekey ;call seek(inf,0,"B")
buf=readLN(inf);cod1=readLN(inf);cod1=reverse(cod1)
cod2=readLN(inf);cod2=reverse(cod2);cod3=readLN(inf);cod3=reverse(cod3)
cod4=readLN(inf);cod4=reverse(cod4);cod5=readLN(inf);cod5=reverse(cod5)
cod6=readLN(inf);cod6=reverse(cod6);cod7=readLN(inf);cod7=reverse(cod7)
wert=strip(readLN(inf));if datatype(wert)="CHAR" then guut=0
code=cod1||NL||cod2||NL||cod3||NL||cod4||NL||cod5||NL||cod6||NL||cod7
wert1=hash(code);if left(buf,28)="<KEYFILE für ONLINE Check ab"then guut=5
fgij="";do i=1 to 9;fgij=fgij||i;end
if wert~=wert1 then guut=0
if guut=0 then signal gamm
if right(cod7,20)~="31323334353637383930" then signal gamm
loo=(length(cod7)-20);cod7=left(cod7,loo)
co=x2c(cod1);co1=x2c(co);lq1=x2c(co1);co=x2c(cod2);co1=x2c(co);lq2=x2c(co1)
co=x2c(cod3);co1=x2c(co);lq3=x2c(co1);co=x2c(cod4);co1=x2c(co);lq4=x2c(co1)
co=x2c(cod5);co1=x2c(co);lq5=x2c(co1);co=x2c(cod6);co1=x2c(co);lq6=x2c(co1)
co=x2c(cod7);co1=x2c(co);lq7=x2c(co1);REGNAME=strip(substr(lq1,19));strmmm=strip(substr(lq2,19));ortmmm=strip(substr(lq3,24))
tel=strip(substr(lq4,19));plz=strip(substr(lq3,19,5));emmm=strip(substr(lq5,19));plzmmm=strip(substr(lq3,19))
co=abs(trunc((tel-vgl*plz)/fgij));ce=substr(lq7,19)
if guut=5 then if co=ce then guut=1
if guut=5 then guut=0
if guut=1 then seriennummer=strip(substr(lq7,19));call deutsch
if seriennummer=102932 then if plzmmm="12345 Ort" then guut=0
say "ser:"seriennummer
say "plz:"plzmmm
interpret reziprog
if guut=0 then signal gamm
if locm="DEUTSCH" then if seekey=1 then if guut=1 then do
rr1="Keyfile für "strip(substr(lq6,19))" oder höher..."
rr2="Information über Keyfile Inhalt:"||nl
rr3="Name :"REGNAME
rr4="Strasse :"strmmm
rr5="PLZ/Ort :"strip(substr(lq3,19))
rr6="Email :"emmm
rr7="Telefon :0"tel
rr8="Seriennummer :"reverse(strip(substr(lq7,19)))
CALL rtezrequest(rr1||NL||rr2||nl||rr3||nl||rr4||nl||rr5||nl||rr6||nl||rr7||nl||rr8,,"Informations Requester",dofont respoo)
end
if guut~=0 then signal gamm
guut=0
GAMM:
call close(inf)
if keyiti=15 then do
interpret Nulli ;call existerit
end
ee1="";ee2="";ee3="";ee4="";ee5="";ee6="";ee7="";ee8=""
gpfg=0;preis=0;anzahl=0;fud=0;MD=upper(left(date(m),3))
i=0;imz=0
monn="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"
gdm="0"
monnn=qqb
MDs=strip(d)
miami=strip(b)
log=strip(c);interpret reziprog
do i= 1 to 12
if upper(word(monn,i))=upper(MDs) then MD=upper(MDs)
end i
if log=""then signal LRO1
if miami="" then NOMI=0
if nomi=0 then security=0
if nomi=1 then if ~exists(""miami"") then signal MRO2
if ~exists(""log"") then signal LRO2
if MDs = "" then MD = upper(left(date(m),3))
tzu=substr(time("N"),7,2)
tza=substr(time("N"),4,2)
tzo=0
tzi=0
tzu1=tzu/2
tzu2=trunc(tzu1)
tza1=tza/2
tza2=trunc(tza1)
if tzu1=tzu2 then tzo=1
if tza1=tza2 then tzi=1
if tzo~=tzi then guut=1
if tzo=tzi then if guut = 0 then req=1
interpret reziprog
if guut=0 then do
text=NL" OC ist ein passives Telefon-/kosten/Zeit"nl" berechnungsprogramm mit internen Limit und"nl
text=text" Sperre..."nl||nl" Wünsche , Logfiles , Bugreports , Ideen"NL
text=text" per Email an : A.Teichmann@gmx.net"NL||NL" Weiter: [OK] Information: [?]"
buuut=" ? | ? | ? | ? | ? ";x10x=tzu2-((trunc(tzu2/10))*10);if x10x>=5 then x10x=x10x-5
buuuut=overlay(" OK",buuut,(x10x*4)+1,3);x10x=x10x+1;if x10x=5 then x10x=0
CALL rtezrequest(plopp" "||nl||text,buuuut,"Zufälliger Nerv Requester",respoo)
if result ~= x10x then do
text=NL" Die kosten von Online Check:"nl||nl" Normale User: 5 DM (überweisung,Bar,Briefmarken)"nl
text=text" Studenten : 2.5 DM (mit Nachweis !)"NL" jeder andere: 3 Euro (falls er mal kommt)"nl||nl
text=text" Bitte auf OK ,um weiterzufahren..."
CALL rtezrequest(plopp" "||nl||text,,"2.Nervrequester", respoo)
end
end
ixr=tzu2-((trunc(tzu2/10))*10)
if ixr=0 then sss=ix0
if ixr=1 then sss=ix1
if ixr=2 then sss=ix2
if ixr=3 then sss=ix3
if ixr=4 then sss=ix4
if ixr=5 then sss=ix5
if ixr=6 then sss=ix6
if ixr=7 then sss=ix7
if ixr=8 then sss=ix8
if ixr=9 then sss=ix9
do forever
i=i+1;if i>13 then leave
if upper(word(monn,i))=MD then leave
end
OLA=word(monnn,i)
mdz=i;mdzbak=i;mdbak=md
signal secondus
existerit:
call close(inf)
text="NEVER USE FAKED KEYS"
say text
file="l:ONline_Check.key"
if exists(file) then do
call open(aus1,file,"W")
call writeln(aus1,text)
call close(aus1)
end
return
secondus:
if nrek=1 then do
mdz=mdzbak
MD=mdbak
gdm=0
gdm1=0
uip=0
gdmg=0
einsum=0
aussum=0
zwisum=0
SM=0
SMpfg=0
SMdm=0
Gpfg=0
SMZsec=0
anzahl=0
kompzzg=0;kompzzgcop=0;kompzzg1=0
end
i=0
interpret reziprog
do forever
i=i+1;if i>13 then leave
if upper(word(monn,i))=MD then leave
end
OLA=word(monnn,i)
mdz=i;mdzbak=i;mdbak=md
if normrech=0 then call open(l,log,"R")
if normrech=1 then call OPENNEU
if opti=1 then call open(loge,temp"Optilog.log","W")
do forever
/* LOGFILE EINLESEN */
loginbuff=""
logoutbuff=""
loginbuffdx=""
logoutbuffdx=""
loginbuffn=""
logoutbuffn=""
loginbuffo=""
loginbuffc=""
loginbuffr=""
loginbuffm=""
logoutbuffm=""
loginbuffp=""
onlinecop="00:00:00"
TITLE=0
zt1=ztb1;zt2=ztb2;zt3=ztb3;zt4=ztb4;zt5=ztb5;zt6=ztb6;zt7=ztb7
zusatzgeb=0
do forever
zwischen=""
loginbutt=upper(ReadLN(l))
history2=history1
history1=history0
history0=history
history=loginbutt
If EOF(l)then break
if normrech=1 then if upper(left(loginbutt,45))="<LETZTER BERECHNUNGSZUGRIFF VON ONLINE CHECK>" then loginbuffp=substr(loginbutt,46)
if upper(left(loginbutt,6))="OCPRO:" then loginbuffr=substr(loginbutt,7)
if upper(left(loginbutt,3))="OC:" then loginbuffo=substr(loginbutt,4)
if upper(left(loginbutt,4))="OCP:" then loginbuffc=substr(loginbutt,5)
if upper(left(loginbutt,7))="ONLINE:" then do
position=(pos(".",loginbutt))-2
loginbuff=substr(loginbutt,position)
end
if upper(left(loginbutt,15))="ACTIVE OFFLINE:" then do
position=(pos(".",loginbutt))-2
logoutbuff=substr(loginbutt,position)
end
if upper(left(loginbutt,17))="PASSIVE OFFLINE: " then logoutbuff=substr(loginbutt,18)
if upper(left(loginbutt,7))="ONLINE(" then do
position=(pos(".",loginbutt))-2
loginbuffdx=substr(loginbutt,position)
end
if upper(left(loginbutt,15))="ACTIVE OFFLINE(" then do
position=(pos(".",loginbutt))-2
logoutbuffdx=substr(loginbutt,position)
end
if upper(left(loginbutt,17))="PASSIVE OFFLINE(" then logoutbuffdx=substr(loginbutt,18)
if upper(left(loginbutt,9))="RECONNECT" then logoutbuff=""
if upper(left(loginbutt,6))="LOGIN:" then do
position=(pos(":",loginbutt,8))-13
loginbuffn=substr(loginbutt,position)
end
if upper(left(loginbutt,7))="LOGOUT:" then do
position=(pos(":",loginbutt,8))-13
logoutbuffn=substr(loginbutt,position)
end
if upper(left(loginbutt,3))="***" then logoutbuffn=right(loginbutt,24)
if upper(substr(loginbutt,19,9))="NETCALL W" then loginbuffm=left(loginbutt,17)
if upper(substr(loginbutt,19,11))="NETCALL ERF" then logoutbuffm=left(loginbutt,17)
if index(loginbutt,ZNG)~=0 then TITLE=1
if verzonung=1 then do
TITLE=1
interpret reziprog
if index(loginbutt,sm1)~=0 then do
if tv1=2 then do
zt1=zt12;zt2=zt22;zt3=zt32;zt4=zt42;zt5=zt52;zt6=zt62;zt7=zt72
end
if tv1=3 then do
zt1=zt13;zt2=zt23;zt3=zt33;zt4=zt43;zt5=zt53;zt6=zt63;zt7=zt73
end
if tv1=4 then do
zt1=zt14;zt2=zt24;zt3=zt34;zt4=zt44;zt5=zt54;zt6=zt64;zt7=zt74
end
if tv1=5 then zusatzgeb=1
end
if index(loginbutt,sm2)~=0 then do
if tv2=2 then do
zt1=zt12;zt2=zt22;zt3=zt32;zt4=zt42;zt5=zt52;zt6=zt62;zt7=zt72
end
if tv2=3 then do
zt1=zt13;zt2=zt23;zt3=zt33;zt4=zt43;zt5=zt53;zt6=zt63;zt7=zt73
end
if tv2=4 then do
zt1=zt14;zt2=zt24;zt3=zt34;zt4=zt44;zt5=zt54;zt6=zt64;zt7=zt74
end
if tv2=5 then zusatzgeb=1
end
if index(loginbutt,sm3)~=0 then do
if tv3=2 then do
zt1=zt12;zt2=zt22;zt3=zt32;zt4=zt42;zt5=zt52;zt6=zt62;zt7=zt72
end
if tv3=3 then do
zt1=zt13;zt2=zt23;zt3=zt33;zt4=zt43;zt5=zt53;zt6=zt63;zt7=zt73
end
if tv3=4 then do
zt1=zt14;zt2=zt24;zt3=zt34;zt4=zt44;zt5=zt54;zt6=zt64;zt7=zt74
end
if tv3=5 then zusatzgeb=1
end
if index(loginbutt,sm4)~=0 then do
if tv4=2 then do
zt1=zt12;zt2=zt22;zt3=zt32;zt4=zt42;zt5=zt52;zt6=zt62;zt7=zt72
end
if tv4=3 then do
zt1=zt13;zt2=zt23;zt3=zt33;zt4=zt43;zt5=zt53;zt6=zt63;zt7=zt73
end
if tv4=4 then do
zt1=zt14;zt2=zt24;zt3=zt34;zt4=zt44;zt5=zt54;zt6=zt64;zt7=zt74
end
if tv4=5 then zusatzgeb=1
end
if index(loginbutt,sm5)~=0 then do
if tv5=2 then do
zt1=zt12;zt2=zt22;zt3=zt32;zt4=zt42;zt5=zt52;zt6=zt62;zt7=zt72
end
if tv5=3 then do
zt1=zt13;zt2=zt23;zt3=zt33;zt4=zt43;zt5=zt53;zt6=zt63;zt7=zt73
end
if tv5=4 then do
zt1=zt14;zt2=zt24;zt3=zt34;zt4=zt44;zt5=zt54;zt6=zt64;zt7=zt74
end
if tv5=5 then zusatzgeb=1
end
end
if loginbuffo~="" then leave
if loginbuffc~="" then leave
if loginbuffr~="" then leave
if loginbuffp~="" then leave
if loginbuffn~=""then if logoutbuffn~="" then leave
if loginbuffm~=""then if logoutbuffm~="" then leave
if loginbuff~=""then if logoutbuff~="" then leave
if loginbuffdx~=""then if logoutbuffdx~="" then leave
end
If EOF(l)then break
if loginbuffo~="" then format="OC"
if loginbuffc~="" then format="OCP"
if loginbuffr~="" then format="OCPRO"
if loginbuffp~="" then format="SIGNED"
if loginbuffn~="" then if logoutbuffn~="" then format="NCOMM"
if loginbuff~="" then if logoutbuff~="" then format="MIAMI"
if loginbuffdx~="" then if logoutbuffdx~="" then format="MIAMIDX"
if loginbuffm~="" then if logoutbuffm~="" then format="MICRODOT"
if see=1 then title=1
if format="MIAMI" then do
itz=substr(loginbuff,1,2)
otz=substr(logoutbuff,1,2)
izh=substr(loginbuff,12,2)
ozh=substr(logoutbuff,12,2)
izm=substr(loginbuff,15,2)
ozm=substr(logoutbuff,15,2)
izs=substr(loginbuff,18,2)
ozs=substr(logoutbuff,18,2)
ijz=substr(loginbuff,7,4)
ojz=substr(logoutbuff,7,4)
imz=substr(loginbuff,4,2)
omz=substr(logoutbuff,4,2)
imn=upper(word(monn,imz))
omn=upper(word(monn,omz))
vbm=imn
dattl=substr(loginbuff,7,4)
itn=upper(left(date("W",ijz||imz||itz,"S"),3))
otn=upper(left(date("W",ojz||omz||otz,"S"),3))
end
if format="MIAMIDX" then do
itz=substr(loginbuffdx,1,2)
otz=substr(logoutbuffdx,1,2)
izh=substr(loginbuffdx,12,2)
ozh=substr(logoutbuffdx,12,2)
izm=substr(loginbuffdx,15,2)
ozm=substr(logoutbuffdx,15,2)
izs=substr(loginbuffdx,18,2)
ozs=substr(logoutbuffdx,18,2)
ijz=substr(loginbuffdx,7,4)
ojz=substr(logoutbuffdx,7,4)
imz=substr(loginbuffdx,4,2)
omz=substr(logoutbuffdx,4,2)
imn=upper(word(monn,imz))
omn=upper(word(monn,omz))
vbm=imn
dattl=substr(loginbuffdx,7,4)
itn=upper(left(date("W",ijz||imz||itz,"S"),3))
otn=upper(left(date("W",ojz||omz||otz,"S"),3))
end
if format="MICRODOT" then do
itz=substr(loginbuffm,10,2)
otz=substr(logoutbuffm,10,2)
izh=substr(loginbuffm,1,2)
ozh=substr(logoutbuffm,1,2)
izm=substr(loginbuffm,4,2)
ozm=substr(logoutbuffm,4,2)
izs=substr(loginbuffm,7,2)
ozs=substr(logoutbuffm,7,2)
ijz=substr(loginbuffm,16,2)
ojz=substr(logoutbuffm,16,2)
if ijz<80 then ijz="20"ijz
else ijz="19"ijz
if ojz<80 then ojz="20"ojz
else ojz="19"ojz
imz=substr(loginbuffm,13,2)
omz=substr(logoutbuffm,13,2)
imn=upper(word(monn,imz))
vbm=imn
omn=upper(word(monn,omz))
dattl=ijz
itn=upper(left(date("W",ijz||imz||itz,"S"),3))
otn=upper(left(date("W",ojz||omz||otz,"S"),3))
end
if format="NCOMM" then do
position=(pos(")",history2))
position1=(pos("(",history2))
posii=(position-position1)-1
if posii<1 then do
zwischen=history2
end
if posii>=1 then ZWISCHEN=(substr(history2,position1+1,posii))
vbm=upper(substr(loginbuffn,5,3))
itn=left(loginbuffn,3)
otn=left(logoutbuffn,3)
itz=substr(loginbuffn,9,2)
otz=substr(logoutbuffn,9,2)
imn=substr(loginbuffn,5,3)
ji=trunc((index(upper(monn),imn)/4))+1
if length(ji)=1 then ji="0"ji
imz=ji
omn=substr(logoutbuffn,5,3)
jo=trunc((index(upper(monn),omn)/4))+1
if length(jo)=1 then jo="0"jo
omz=jo
izh=substr(loginbuffn,12,2)
ozh=substr(logoutbuffn,12,2)
izm=substr(loginbuffn,15,2)
ozm=substr(logoutbuffn,15,2)
izs=substr(loginbuffn,18,2)
ozs=substr(logoutbuffn,18,2)
ijz=substr(loginbuffn,21,4)
ojz=substr(logoutbuffn,21,4)
dattl=substr(loginbuffn,21,4)
end
if format="OC" then do
uip=substr(loginbuffo,10)
ttz=substr(loginbuffo,1,2)
itz=0;otz=0;izh=0;ozh=0;izm=0;ozm=0;izs=0;ozs=0;ijz=0
tjz="19"substr(loginbuffo,7,2);ojz=0;tmz=0;tmz=substr(loginbuffo,4,2);imz=tmz
omz=0;imn=0;omn=0
dattl=tjz
otn=0
vbm=upper(word(monn,tmz))
end
if format="OCP" then do
position=(pos(")",loginbuffc))
position1=(pos("(",loginbuffc))
uip=substr(loginbuffc,position+1)
posii=(position-position1)-1
anzahlcop=(substr(loginbuffc,position1+1,posii))-1
if anzahlcop<=0 then anzahlcop=0
ttz=0;ttz=substr(loginbuffc,1,2);itz=ttz;otz=itz
izh="00";ozh="00";izm="00";ozm="00";izs="00";ozs="00"
tjz=0;tjz="19"substr(loginbuffc,7,2);ijz=tjz;ojz=tjz
tmz=0;tmz=substr(loginbuffc,4,2);imz=tmz;omz=tmz
dattl=tjz
itn=0;otn=0
vbm=upper(word(monn,tmz));imn=vbm;omn=vbm
end
interpret reziprog
if format="OCPRO" then do
position=(pos(")",loginbuffr))
position1=(pos("(",loginbuffr))
position2=(pos("]",loginbuffr))
position3=(pos("[",loginbuffr))
uip=substr(loginbuffr,position+1,position3-(position+1))
posii=(position-position1)-1
anzahlcop=(substr(loginbuffr,position1+1,posii))-1
if anzahlcop<=0 then anzahlcop=0
posiii=(position2-position3)-1
onlinecop=(substr(loginbuffr,position3+1,posiii))
ttz=0
ttz=substr(loginbuffr,1,2)
itz=ttz
otz=itz
izh="00";ozh="00";izm="00";ozm="00";izs="00";ozs="00"
tjz=0;tjz="19"substr(loginbuffr,7,2);ijz=tjz;ojz=tjz
tmz=0;tmz=substr(loginbuffr,4,2);imz=tmz;omz=tmz
dattl=tjz
itn=0;otn=0
vbm=upper(word(monn,tmz));imn=vbm;omn=vbm
if index(loginbuffr,"{")~=0 then do
bosition2=(pos("}",loginbuffr))
bosition3=(pos("{",loginbuffr))
posiiii=(bosition2-bosition3)-1
kompzzgcop=(substr(loginbuffr,bosition3+1,posiiii))
end
end
if format="SIGNED" then do
signo=1;anzsigno=0
position=(pos(")",loginbuffp))
position1=(pos("(",loginbuffp))
position2=(pos("]",loginbuffp))
position3=(pos("[",loginbuffp))
uip=substr(loginbuffp,position+1,position3-(position+1))
posii=(position-position1)-1
anzahlcop=(substr(loginbuffp,position1+1,posii))-1
if anzahlcop<=0 then anzahlcop=0
anzahlsignedcopy=anzahlcop
posiii=(position2-position3)-1
onlinecop=(substr(loginbuffp,position3+1,posiii))
kompzzgcop=0
if tonlinezzg=1 then if index(loginbuffp,"{")~=0 then do
bosition2=(pos("}",loginbuffp))
bosition3=(pos("{",loginbuffp))
posiiii=(bosition2-bosition3)-1
kompzzgcop=(substr(loginbuffp,bosition3+1,posiiii))
end
ttz=0
ttz=substr(loginbuffp,1,2)
itz=ttz
otz=itz
izh="00";ozh="00";izm="00";ozm="00";izs="00";ozs="00"
tjz=0;tjz="19"substr(loginbuffp,7,2);ijz=tjz;ojz=tjz
tmz=0;tmz=substr(loginbuffp,4,2);imz=tmz;omz=tmz
dattl=tjz
itn=0;otn=0
vbm=upper(word(monn,tmz));imn=vbm;omn=vbm
end
doit=0
take=0;neuermonat=0;vcm=0;vbm=upper(vbm);md=upper(md);titlej=0
mdz=mdzbak
if berechtag~=0 then do
if admdz>=berechtag then do
neuermonat=mdz+1
if neuermonat>12 then neuermonat=1
if berechtag=1 then neuermonat=mdz
vcm=upper(word(monn,neuermonat))
end
if admdz<berechtag then do
mdz=mdz-1
if mdz<1 then mdz=12
gumble=mdz+1;if gumble>12 then gumble=1
vcm=upper(word(monn,gumble))
neuermonat=gumble
end
md=upper(word(monn,mdz))
if dattt=dattl then titlej=1 /* Jahreszahl vergleichen */
if dattt=dattl+1 then titlej=1
if titlej=0 then title=0
if vbm=md then do
if itz>=berechtag then take=1
end
if vbm=vcm then do
if itz<berechtag then take=1
end
end
if berechtag=0 then do
if dattt~=dattl then title=0 /* Jahreszahl vergleichen */
if upper(vbm)=upper(md) then take=1 /* Monat vergleichen */
end
if format="OC" then if vbm~=md then uip=0 /* Sonderparameter */
if title=1 then if take=1 then doit=1
if doit=0 then do
if format="SIGNED" then do
kompzzgcop=0
end
zop=1
onlinecop="00:00:00"
end
if format="SIGNED" then if doit=0 then do
uip=0
anzahlcop=0
kompzzgcop=0
onlinecop="00:00:00"
end
if doit=1 then do
if format~="SIGNED" then do
anzahl=anzahl+1
anzsigno=anzsigno+1
end
zsl=0
fud=1
i=0
if opti=1 then do
if format="MIAMI" then do
call writeln(loge,"Online: "loginbuff)
call writeln(loge,"Active Offline: "logoutbuff)
end
if format="NCOMM" then do
call writeln(loge,"Online: "itz"."imz"."ijz" "izh":"izm":"izs" ("Zwischen")")
call writeln(loge,"Active Offline: "otz"."omz"."ojz" "ozh":"ozm":"ozs)
end
if format="OC" then do
call writeln(loge,"OC:"loginbuffo)
end
if format="MICRODOT" then do
call writeln(loge,"Online: "itz"."imz"."ijz" "izh":"izm":"izs)
call writeln(loge,"Active Offline: "otz"."omz"."ojz" "ozh":"ozm":"ozs)
end
if format="OCP" then do
call writeln(loge,"OCP:"date("E")"("anzahl")"uip)
end
if format="OCPro" then do
call writeln(loge,"OCPro:"date("E")"("anzahl")"uip"["onlinecop"]{"kompzzg"}")
end
end
imz=0
do forever
i=i+1
if i>13 then leave
if upper(word(monn,i))=upper(imn) then leave
end
imz=i
i=0
omz=0
do forever
i=i+1
if i>13 then leave
if upper(word(monn,i))=upper(omn) then leave
end
omz=i
i=0
ii=words(WoendT)+1
fthi=0
do forever
i=i+1
if i>=ii then leave
if upper(word(WoendT,i))=upper(itn) then fthi=1
end
gimz=""
if length(imz)=1 then gimz="0"
vergl=itz"."gimz||imz
i=0
ii=words(SonderT)+1
do forever
i=i+1
if i>=ii then leave
if (word(SonderT,i))=upper(vergl) then fthi=1
end
EZT=izh""izm""izs
if ozh<izh then ozh=ozh+24
AZT=ozh""ozm""ozs
sum=0
add=0
sum2=0
getop=0
if fthi=1 then do
fzt1=samzt1
fzt2=samzt2
fzt3=samzt3
fzt4=samzt4
fzt5=samzt5
fzt6=samzt6
fzt7=samzt7
end
if fthi=0 then do
fzt1=zt1
fzt2=zt2
fzt3=zt3
fzt4=zt4
fzt5=zt5
fzt6=zt6
fzt7=zt7
end
OZIgs=0
OZOgs=0
if EZT~=0 then do
OZIgs=(izh*3600)+(izm*60)+izs
end
if AZT~=0 then do
OZOgs=(ozh*3600)+(ozm*60)+ozs
end
if OZOgs<OZIgs then OZOGS=OZOgs+86400
OZges=OZOgs-OZIgs
secont1=0
secont2=0
secont3=0
interpret reziprog
ezs=(substr(ezt,1,2)*3600)+(substr(ezt,3,2)*60)+(substr(ezt,5,2))
azs=(substr(azt,1,2)*3600)+(substr(azt,3,2)*60)+(substr(azt,5,2))
if ezs<86400 then tarifv=fzt4
if ezs<75600 then tarifv=fzt3
if ezs<64800 then tarifv=fzt2
if ezs<43200 then tarifv=fzt7
if ezs<32400 then tarifv=fzt1
if ezs<18000 then tarifv=fzt5
if ezs<7200 then tarifv=fzt6
if EZs<7200 then if AZs>7200 then do
teil1=7200-(izs+(izm*60)+(izh*3600))
tarifv=fzt6
getop=1
end
if EZs<18000 then if EZs >7200 then if azs>18000 then do
teil1=18000-(izs+(izm*60)+(izh*3600))
tarifv=fzt5
getop=1
end
if EZs<32400 then if EZs >18000 then if azs>32400 then do
teil1=32400-(izs+(izm*60)+(izh*3600))
tarifv=fzt1
getop=1
end
if EZs<43200 then if EZs >32400 then if azs>43200 then do
teil1=43200-(izs+(izm*60)+(izh*3600))
tarifv=fzt7
getop=1
end
if EZs<64800 then if EZs >43200 then if azs>64800 then do
teil1=64800-(izs+(izm*60)+(izh*3600))
tarifv=fzt2
getop=1
end
if EZs<75600 then if EZs >64800 then if azs>75600 then do
teil1=75600-(izs+(izm*60)+(izh*3600))
tarifv=fzt3
getop=1
end
if EZs<86400 then if EZs >75600 then if azs>86400 then do
teil1=86400-(izs+(izm*60)+(izh*3600))
tarifv=fzt4
getop=1
end
if getop=1 then do
secont1=((trunc((teil1/tarifv)+0.5))*TFpfg)
end
getop=0
if AZs<18000 then if AZs >7200 then if EZs<7200 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-7200
tarifv=fzt5
getop=1
end
if AZs<32400 then if AZs >18000 then if EZs<18000 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-18000
tarifv=fzt1
getop=1
end
if AZs<43200 then if AZs >32400 then if EZs<32400 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-32400
tarifv=fzt7
getop=1
end
if AZs<64800 then if AZs >43200 then if EZs<43200 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-43200
tarifv=fzt2
getop=1
end
if AZs<75600 then if AZs >64800 then if EZs<64800 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-64800
tarifv=fzt3
getop=1
end
if AZs<86400 then if AZs >75600 then if EZs<75600 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-75600
tarifv=fzt4
getop=1
end
if AZs>86400 then if EZs<86400 then do
teil3=(ozs+(ozm*60)+(ozh*3600))-86400
tarifv=fzt6
getop=1
end
if getop=1 then do
secont3=((trunc((teil3/tarifv)+0.5))*TFpfg)
end
getop=0
if EZs<7200 then if azs >18000 then add=add+((10800/zt5)*tfpfg)
if EZs<18000 then if azs >32400 then add=add+((14400/zt1)*tfpfg)
if EZs<32400 then if azs >43200 then add=add+((10800/zt1)*tfpfg)
if EZs<43200 then if azs >64800 then add=add+((21600/zt2)*tfpfg)
if EZs<64800 then if azs >75600 then add=add+((10800/zt3)*tfpfg)
if EZs<75600 then if azs >86400 then add=add+((10800/zt4)*tfpfg)
if format~="SIGNED" then if format~="OCPRO" then if secont1=0 then do
if secont3=0 then secont2=trunc((((ozs-izs)+((ozm*60)-(izm*60))+((ozh*3600)-(izh*3600)))/tarifv)+1)*tfpfg
Zsecont2=trunc((((ozs-izs)+((ozm*60)-(izm*60))+((ozh*3600)-(izh*3600))))+1)
end
interpret reziprog
neuegeb=0
if zusatzgeb=1 then if doit=1 then do
neuegeb=0
mmxm=trunc(ozges/60)
btxt1=0;btxt2=0
if index(Tonlinetage1,ITN)~=0 then do
btxt1=Tonline1t1
btxt2=Tonline1t2
end
if index(Tonlinetage2,ITN)~=0 then do
btxt1=Tonline2t1
btxt2=Tonline2t2
end
neuegeb=(mmxm+1)*btxt2
if EZT>080000 then if EZT<180000 then do
neuegeb=(mmxm+1)*btxt1
end
add=add+(neuegeb*100)
end
kompzzg1=kompzzg1+(neuegeb)+kompzzgcop ;kompzzgcop=0
kompzzg=trunc(kompzzg1,2)
SMZsec=SMZsec+OZges
SMpfg=(secont1+add+secont2+secont3)
if format~="SIGNED" then SMdm=SMpfg/100
Gpfg=Gpfg+SMpfg
gdmg=trunc((gpfg/100),2)
smzh=trunc(SMZsec/60/60)
smzm=trunc(smzsec/60)-(smzh*60)
smzs=smzsec-(smzm*60)-(smzh*3600)
if length(smzh)=1 then smzh="0"smzh
if length(smzm)=1 then smzm="0"smzm
if length(smzs)=1 then smzs="0"smzs
if onlinecop~="00:00:00" then do
snzh=substr(onlinecop,1,2)
snzm=substr(onlinecop,4,2)
snzs=substr(onlinecop,7,2)
SMZsec=SMZsec+(snzh*60*60)+(snzm*60)+snzs
smzh=trunc(SMZsec/60/60)
smzm=trunc(smzsec/60)-(smzh*60)
smzs=smzsec-(smzm*60)-(smzh*3600)
if length(smzh)=1 then smzh="0"smzh
if length(smzm)=1 then smzm="0"smzm
if length(smzs)=1 then smzs="0"smzs
end
interpret reziprog
KOMPonline=smzh":"smzm":"smzs
ozu="";call ONLtest
statt="RUNNING";call plugin
ENDRECH:
end
end
anzahlbak=anzahl
anzahl=anzahl+anzahlcop
gdm=trunc(gdmg+uip+zsgeb+Inetgeb,2)
gdm1=trunc(gdmg+uip,2)
nrek1=0;nrek2=0;nrek3=0;nrek4=0
if ONLreq=1 then if nrek=1 then do
nONLINEtime=SMZsec
nrek3=1
end
if nreq=1 then if nrek=1 then do
nsecond=gdm
nrek4=1
end
if nrek3=1 then nrek=2
if nrek4=1 then nrek=2
if ONLreq=1 then if nrek=0 then do
ONLINEtime=SMZsec
nrek1=1
end
if nreq=1 then if nrek=0 then do
nfirst=gdm
nrek2=1
end
if nrek1=1 then nrek=1
if nrek2=1 then nrek=1
if nrek=2 then signal bigend
fud=0
Call Close(l);
statt="END";call plugin
/* Text generierung */
call MAKETEXT
DMflag=1
if gdm>=(MADM+schlupf) then DMflag=0
if gdm>=MADM then if gdm<=(MADM+schlupf) then DMflag=2
if gdm>(MADM-rwarn) then if gdm<MADM then DMflag=3
if ONLwarn=1 then do
if ONLflag=0 then req=1
if ONLflag=2 then req=1
end
if flag=1 then if dmflag~=1 then req=1
interpret reziprog
if req=1 then do
ee1=outtitel||NL||OUTkostenbisher||NL
if DMflag=0 then ee1=ee1||OUTueberschritten||NL
if DMflag=3 then ee1=ee1||OUTdanger||NL||OUTprozentDM||NL||OUTnochfrei||NL
if DMflag=2 then ee1=ee1||OUTueberschritten||NL
if DMflag=1 then ee1=ee1||OUTnochfrei||NL
if ONLwarn=1 then ee1=ee1||OUTzeit||NL
zweitvar=1
if zweitvar=1 then if DMflag=0 then zweitvar=0
if zweitvar=1 then if ONLwarn=1 then if ONLflag=0 then zweitvar=0
if zweitvar=1 then if DMflag=2 then zweitvar=2
if zweitvar=1 then if ONLwarn=1 then if ONLflag=2 then zweitvar=2
if muireq=1 then do
if show("p",MUIPORT) =0 then do
address command muirun" "muinil" "MUIPFAD
MUIstart=1
end
end
if zweitvar=1 then do
if nomi=1 then ee1=ee1||OUTstarte
call SOUNDWARTE
call REQJA
call SOUNDJA
end
if zweitvar=0 then do
if nomi=1 then ee1=ee1||OUTnichtstart
call SOUNDWARTE
call REQNEIN
call SOUNDNEIN
nomi=0
if security=1 then do
stinfo=1
call startschutz
stinfo=0
if startschutz=1 then call startschutz
end
end
if zweitvar=2 then do
if nomi=1 then ee1=ee1||OUTnichtstart
call SOUNDWARTE
call REQVIELEICHT
call SOUNDVIELEICHT
end
end
endegut:
if turbob=1 then if anzahlbak>=grenz then do
call close(loge)
call open(loge,temp"Optilog.log","W")
call writeln(loge,"OCPro:"date("E")"("anzahl")"gdm1"["komponline"]{"kompzzg"}")
zop=1
end
call close(loge)
if opti=1 then if zop=1 then address command copyb" FROM "temp"Optilog.log TO "logb
if exists(temp"optilog.log") then address command deleb" "nilib" "temp"optilog.log"
if nrek=1 then signal sttt
if onlreq=1 then signal sttt
/* prg welches bei verweigerung gestartet wird. */
if nomi=0 then if nottot=1 then address command starbef" "nostartprg
if exists(temp"OC_logfile.temp") then address command deleb" "nilib" "temp"OC_logfile.temp"
exit
bigend:
if normrech=1 then call neuschreiben
if nreq=1 then do
Letzter=nsecond-nfirst
if letzter<=0 then exit
end
if ONLreq=1 then do
TIMEonline=nONLINEtime-ONLINEtime
if TIMEonline<=0 then exit
end
if ONLreq=1 then do
smzh=trunc(TIMEonline/60/60)
smzm=trunc(TIMEonline/60)-(smzh*60)
smzs=TIMEonline-(smzm*60)-(smzh*3600)
if length(smzh)=1 then smzh="0"smzh
if length(smzm)=1 then smzm="0"smzm
if length(smzs)=1 then smzs="0"smzs
Eplus=smzh":"smzm":"smzs
end
if ONLreq=0 then do
sst="";Eplus=""
end
if nreq=0 then do
ssq="";letzter="";ssr="";sss=""
end
Texx1=ssq||letzter" "ssr||nl||sst||eplus
stic1="Sie haben noch "Madm-GDM" DM zur freien Verfügung."nl
stic2=""
if gdm>0.31 then stic2="Bisherige Durchschnittskosten :"trunc((GDM/31),2)" DM/pro Tag"
if madm<gdm then do
stic1="Sie haben Ihr Limit schon um "gdm-madm" DM überzogen."nl
end
texx2=sss||nl||stic1||stic2
CALL rtezrequest(texx1||NL||texx2,,plopp,docenter dofont respoo)
if exists(temp"OC_logfile.temp") then address command deleb" "nilib" "temp"OC_logfile.temp"
exit
STTT:
abcintern=0
if nomi=1 then call pragma("STACK",stacky)
if nreq=1 then abcintern=1
if ONLreq=1 then abcintern=1
if abcintern=0 then if normrech=1 then if nrek=1 then call NEUSCHREIBEN
if nomi=1 then do
stinfo=1;call startschutz;stinfo=0
if startschutz=2 then call startschutz
end
if nomi=1 then address command ''RUN' 'NIL' 'miami''
if nreq=1 then signal secondus
if ONLreq=1 then signal secondus
exit
ONLtest:
if ONLwarn=1 then do
/* ONLINE bisher: */
if SMZsec<(ONLlimit-ONLschwelle) then do
DF0=komponline
ozu=ssu" "df0" / "ONLlimitout" Limit"
ONLflag=1
end
/* LIMIT Überschritten */
if SMZsec>ONLlimit then do
df1=smzsec-onllimit
dmzh=trunc(DF1/60/60)
dmzm=trunc(DF1/60)-(dmzh*60)
dmzs=DF1-(dmzm*60)-(dmzh*3600)
if length(dmzh)=1 then dmzh="0"dmzh
if length(dmzm)=1 then dmzm="0"dmzm
if length(dmzs)=1 then dmzs="0"dmzs
DF1=dmzh":"dmzm":"dmzs
OZu=ssy" "DF1" "ssz
ONLflag=0
end
/* Grenzschwelle erreicht */
if SMZsec>(ONLlimit-ONLschwelle) then if SMZsec<ONLlimit then do
DF2=onllimit-smzsec
dmzh=trunc(DF2/60/60)
dmzm=trunc(DF2/60)-(dmzh*60)
dmzs=DF2-(dmzm*60)-(dmzh*60*60)
if length(dmzh)=1 then dmzh="0"dmzh
if length(dmzm)=1 then dmzm="0"dmzm
if length(dmzs)=1 then dmzs="0"dmzs
DF2=dmzh":"dmzm":"dmzs
OZU=ssv" "DF2" "ssw" / "ONLlimitout" Limit"
ONLflag=2
end
end
return OZu
/* Requester Ausgabe mit OK Button */
REQJA:
if MUIreq=0 then CALL rtezrequest(ee1,sds,bvd" OC V"VERZ" "ssk" "REGNAME,docenter dofont)
if MUIreq=1 then call MUIreqja
return
/* Requester Ausgabe mit STARTE TROTZDEM & Schade Button */
REQVIELEICHT:
if MUIreq=0 then CALL rtezrequest(ee1,sdo"|"sdd"",bvd" OC V"VERZ" "ssk" "REGNAME,docenter dofont respoo)
if MUIreq=0 then if result=1 then nomi=0
if MUIreq=1 then call MUIreqvieleicht
if MUIreq=1 then if resultmui=1 then nomi=0
return
/* Requester Ausgabe mit SCHADE Button */
REQNEIN:
if MUIreq=0 then CALL rtezrequest(ee1,sdn,bvd" OC V"VERZ" "ssk" "REGNAME,docenter dofont respoo)
if MUIreq=1 then call MUIreqnein
return
SOUNDJA:
sti=1
if playit=1 then if mpx3~="" then address command rpx" "mpx" "nipx" "mpx3
return
SOUNDNEIN:
sti=2
if playit=1 then if mpx4~="" then address command rpx" "mpx" "nipx" "mpx4
return
SOUNDwarte:
if playit=1 then if mpx5~="" then address command rpx" "mpx" "nipx" "mpx5
call time("R")
if vpx>0 then do forever
if time("E")>=vpx then leave
end
return
SOUNDvieleicht:
sti=2
if result=0 then sti=1
if playit=1 then do
if (gdm-madm)<schlupf then do
if sti=1 then if mpx1~="" then address command rpx" "mpx" "nipx" "mpx1
if sti~=1 then if mpx2~="" then address command rpx" "mpx" "nipx" "mpx2
end
end
return
/* Texte Generierung für Ausgabe */
MAKETEXT:
PROZ=trunc((100/MADM)*gdm)
if berechtag~=0 then do
berech2=berechtag-1
if berech2<1 then berech2=31
if neuermonat=2 then if berech2>28 then berech2=28
aktdatum="["berechtag"."mdz".-"berech2"."neuermonat".]"
OLA=aktdatum
end
logtipos=reverse(log)
logtipos1=pos("/",logtipos)
if logtipos1=0 then logtipos1=pos(":",logtipos)
logtimin=length(log)
logtirt=logtimin-logtipos1
logrest=substr(log,logtirt+2)
logtitel=ssbd||logrest||ssbe
if aust=0 then do
kom1=ssa" "madm" "ssb" "ola
kom2=ssc" "gdm" "ssd" "anzahl" "sse
kom21=ssac" "kompzzg" "ssbc
kom3=ssf" "madm-gdm" "ssg" "ola" "ssh
kom4="! ACHTUNG !"
kom5=ssi" "proz" "ssj
kom6=ssp" "miami
kom7=ssl" "gdm-madm" "ssm
kom8=ssn" "miami" "sso
OUTtitel=logtitel||nl||kom1
OUTkostenbisher=kom2
if tonlinezzg=1 then OUTkostenbisher=OUTkostenbisher||nl||kom21
OUTnochfrei=kom3
OUTdanger=kom4
OUTprozentDM=kom5
OUTstarte=kom6
OUTueberschritten=kom7
OUTnichtstart=kom8
end
if aust=0 then signal KR22
if kom1="" then signal kb1
er1="";l=length(kom1);i1=0
do i = 1 to l ;g1=""
e1=substr(kom1,i,1);g1=substr(kom1,i,3)
call textsch
end
kb1:
OUTtitel=logtitel||nl||er1
ee2=ssc" "gdm" "ssd" "anzahl" "sse
if kom2="" then signal kb2
er1="";l=length(kom2);i1=0
do i = 1 to l ;g1=""
e1=substr(kom2,i,1);g1=substr(kom2,i,3)
call textsch
end
kb2:
OUTkostenbisher=er1
ee3=ssf" "MADM-gdm" "ssg" "OLA" "ssh
if kom3="" then signal kb3
er1=""
l=length(kom3)
i1=0
do i = 1 to l
g1=""
e1=substr(kom3,i,1)
g1=substr(kom3,i,3)
call textsch
end
kb3:
OUTnochfrei=er1
PROZ=trunc((100/MADM)*gdm)
ff3="*** DANGER ! ***"
ff4=ssi" "PROZ" "ssj
if kom4="" then signal kp3
er1=""
l=length(kom4);i1=0
do i = 1 to l
g1=""
e1=substr(kom4,i,1)
g1=substr(kom4,i,3)
call textsch
end
kp3:
OUTdanger=er1
if kom5="" then signal kz3
er1=""
l=length(kom5)
i1=0
do i = 1 to l
g1=""
e1=substr(kom5,i,1)
g1=substr(kom5,i,3)
call textsch
end
kz3:
OUTprozentDM=er1
ee4=""
if kom3="" then signal kg1
er1=""
l=length(kom6)
i1=0
do i = 1 to l ;g1=""
e1=substr(kom6,i,1)
g1=substr(kom6,i,3)
call textsch
end
kg1:
OUTstarte=er1
ee3=ssl" "gdm-MADM" "ssm
ee4=ssn||Miami||sso
if kom7="" then signal kr1
er1=""
l=length(kom7)
i1=0
do i = 1 to l
g1=""
e1=substr(kom7,i,1)
g1=substr(kom7,i,3)
call textsch
end
kr1:
OUTueberschritten=er1
if kom8="" then signal kr2
er1=""
l=length(kom8)
i1=0
do i = 1 to l
g1=""
e1=substr(kom8,i,1)
g1=substr(kom8,i,3)
call textsch
end
kr2:
OUTnichtstart=er1
KR22:
call ONLtest
OUTZeit=OZu
return
/* Fehler Ausgabe */
LRO1:
CALL rtezrequest(TRITT||NL||NL||uug||NL||NL||uuh||NL||uui||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
LRO2:
CALL rtezrequest(TRITT||NL||NL||uuk||NL||NL||uua||log||uub||NL||NL||uuh||NL||uul||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
MRO2:
CALL rtezrequest(TRITT||NL||NL||uum||NL||NL||uua||MIAMI||uub||NL||NL||uuh||NL||uul||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
NVI:
CALL rtezrequest(TRITT||NL||NL||uun||NL||NL||uua||default||uub||NL||NL||uuo||NL||uup||NL||uuq||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
NOFONT:
CALL rtezrequest(TRITT||NL||NL||uur||NL||NL||uus||fontd||uut||sized||uub||NL||NL||uuv||NL||uul||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
PRO2:
CALL rtezrequest(TRITT||NL||NL||uuw||NL||NL||uua||mpx||uub||NL||NL||uuh||NL||uul||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
PRO3:
CALL rtezrequest(TRITT||NL||NL||uux||NL||NL||uua||rpx||uub||NL||NL||uuh||NL||uul||NL||NL||uuj,,plopp,docenter dofont respoo)
exit
UMBR:
CALL rtezrequest(NL||"Catalog File not Found"||NL,,plopp,docenter dofont respoo)
exit
NODAT:
CALL rtezrequest(NL||"[S:Online_Check.Dat] not found"||NL,,plopp,docenter dofont respoo)
exit
UMBRRR:
CALL rtezrequest(NL||"Wrong Version of Catalogfile"||NL,,plopp,docenter dofont respoo)
exit
UMBRI:
CALL rtezrequest(NL||"Error in Catalog File"||NL,,plopp,docenter dofont respoo)
exit
DEUTSCH:
if datatype(seriennummer)="CHAR" then keyiti=15
if (seriennummer/1024)<9.76 then keyiti=15
if index(emmm,"@")=0 then keyiti=15
if length(emmm)<3 then keyiti=15
if length(strmmm)<5 then keyiti=15
if datatype(tel)="CHAR" then keyiti=15
if tel<1000 then keyiti=15
if tel="123456789" then keyiti=15
if datatype(plz)="CHAR" then keyiti=15
if plz<10 then keyiti=15
if datatype(ortmmm)~="CHAR" then keyiti=15
if index(regname,"^")~=0 then keyiti=15
if index(regname,"SUT")~=0 then keyiti=15
if index(regname,"98")~=0 then keyiti=15
if index(regname,"97")~=0 then keyiti=15
if index(regname,"99")~=0 then keyiti=15
return
OPENNEU:
call open(l,log,"R")
datlen=seek(l,0,"E")
if maxseek~=0 then If datlen>=maxseek then MUSSopt=1
if datlen>=65535 then call seek(l,datlen-65535,"B")
if datlen<65535 then call seek(l,0,"B")
fub=reverse(readch(l,65535))
xtpos=pos(searchid,fub)
xtlog=reverse(left(fub,xtpos+44))
if xtpos=0 then do
call close(l)
call open(l,log,"R")
end
if xtpos=0 then return
xtlog=reverse(left(fub,xtpos+44))
call close(l)
call open(l,temp"OC_logfile.temp","w")
call writech(l,xtlog)
call close(l)
call open(l,temp"OC_logfile.temp","R")
return
NEUSCHREIBEN:
if mussopt=0 then if signo=1 then if anzsigno=0 then return
if anzahlsignedcopy = anzahl+1 then return
anzahlplus=anzahl+1;indb="A"
if mussopt=1 then indb="W"
call open(loge,log,indb);rsearch=reverse(searchid)
call writeln(loge,rsearch||date("E")"("anzahlplus")"gdm1"["komponline"]{"kompzzg"}")
call close(l)
if exists(temp"OC_logfile.temp") then address command deleb" "nilib" "temp"OC_logfile.temp"
call close(loge)
return
MUIREQJA:
if show("p",muiport) ~= 1 then signal MUIREQJA
tempbak=temp
call open(mui,temp"mui.temp","w")
call writech(mui,ee1)
call close(mui);muirexx=muiport
call centermui
address muirexx
request 'TITLE' '"'bvd" OC V"VERZ" "ssk" "REGNAME'"' 'GADGETS' '"'sds'"' FILE '"'temp"mui.temp"'"'
resultmui=RESULT
if muistart=1 then address MUIREXX quit
address command deleb" "nilib" "temp"mui.temp"
temp=tempbak
return
MUIREQVIELEICHT:
if show("p",muiport) ~= 1 then signal MUIREQVIELEICHT
tempbak=temp
call open(mui,temp"mui.temp","w")
call writech(mui,ee1)
call close(mui);muirexx=muiport
call centermui
address muirexx
request 'TITLE' '"'bvd" OC V"VERZ" "ssk" "REGNAME'"' 'GADGETS' '"'sdo'|'sdd'"' FILE '"'temp"mui.temp"'"'
resultmui=RESULT
if muistart=1 then address MUIREXX quit
address command deleb" "nilib" "temp"mui.temp"
temp=tempbak
return
MUIREQNEIN:
if show("p",MUIport) ~= 1 then signal MUIREQNEIN
tempbak=temp
call open(mui,temp"mui.temp","w")
call writech(mui,ee1)
call close(mui);muirexx=muiport
call centermui
address muirexx
request 'TITLE' '"'bvd" OC V"VERZ" "ssk" "REGNAME'"' 'GADGETS' '"'sdn'"' FILE '"'temp"mui.temp"'"'
resultmui=RESULT
if muistart=1 then address MUIREXX quit
address command deleb" "nilib" "temp"mui.temp"
temp=tempbak
return
checklenge:
call open(ch,temp"mui.temp","R");le2=1
do forever
buf=readln(ch)
If EOF(ch)then leave
le1=length(buf)
if le2<le1 then le2=le1
end
call close(ch)
call open(ch,temp"mui.temp","R")
call open(cc,temp"1.mui.temp","W")
do forever
buf=readln(ch)
buf1=center(buf,le2)
call writeln(cc,buf1)
If EOF(ch)then leave
end
call close(cc)
call close(ch)
return
centermui:
if cennt=1 then do
call checklenge
address command deleb" "nilib" "temp"mui.temp"
temp=temp"1."
end
return
schicht:
interpret Nulli ;call existerit
return
PLUGIN:
if plugin=1 then do
call setclip(status,statt)
call setclip(PLonMAX,ONLlimitout)
call setclip(PLonSCH,ONlschwelle)
call setclip(PLonTIME,komponline)
call setclip(PLmaxDM,MXDM)
call setclip(PLbisDM,gdmg)
call setclip(PLindex,history2)
call setclip(PLzzgk,kompzzg)
call setclip(PLzzgm,neuegeb)
call setclip(PLinZ,izh":"izm":"izs)
call setclip(PLoutZ,ozh":"ozm":"ozs)
call setclip(PLtarif,tarifv)
if plug=1 then call "s:ONline_Check.plugin"
if plug=2 then call "Rexx:ONline_Check.plugin"
statt =getclip(status)
komponline=getclip(PLonTIME)
ONLlimitout=getclip(PLonMAX)
ONlschwelle=getclip(PLonSCH)
MXDM =getclip(PLmaxDM)
gdmg =getclip(PLbisDM)
history2=getclip(PLindex)
kompzzg =getclip(PLzzgk)
neuegeb =getclip(PLzzgm)
PLinZ =getclip(PLinZ)
PLoutZ =getclip(PLoutZ)
tarifv =getclip(PLtarif)
izh=substr(PLinZ,1,2)
izm=substr(PLinZ,3,2)
izs=substr(PLinZ,5,2)
ozh=substr(PLoutZ,1,2)
ozm=substr(PLoutZ,3,2)
ozs=substr(PLoutZ,5,2)
end
return
STARTSCHUTZ:
startschutz=0
stschfile=word(miami,1)
call open(startschutzIN,stschfile,"R")
call open(startschutzOUT,temp"OC_save","W")
StartschutzMUSTER1="000003f3"
StartschutzMUSTER2="ffffffff"
buf=readch(startschutzIN,4)
xbuf=upper(c2x(buf));if xbuf=upper(StartschutzMUSTER1) then do
ybuf=x2c(StartschutzMUSTER2)
call writech(startschutzOUT,ybuf)
startschutz=1
end
xbuf=upper(c2x(buf));if xbuf=upper(StartschutzMUSTER2) then do
ybuf=x2c(StartschutzMUSTER1)
call writech(startschutzOUT,ybuf)
startschutz=2
end
if stinfo=1 then call close(startschutzOUT)
if stinfo=1 then call close(startschutzIN)
if stinfo=1 then return
if startschutz>=1 then do
do forever
buf=reverse(readch(startschutzIN,65535))
if eof(startschutzIN) then leave
call writech(startschutzOUT,buf)
end
call close(startschutzOUT)
call close(startschutzIN)
call open(startschutzIN,temp"OC_save","R")
call open(startschutzOUT,stschfile,"W")
do forever
buf=readch(startschutzIN,65535)
if eof(startschutzIN) then leave
call writech(startschutzOUT,buf)
end
call close(startschutzOUT)
call close(startschutzIN)
end
if exists(temp"OC_save") then address command deleb" "nilib" "temp"OC_save"
return